package com.marvels.financial.loan.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.marvels.financial.loan.dto.McfeLoanWithholdingDetailDTO;

public interface McfeLoanWithholdingDetailDao {
	/**根据loanId查询咨询费代扣详情
	 * @author 娄凯琦
	 * @date 2018年5月17日  
	 * @param loanAfterInfo
	 * @return
	 */
	public List<McfeLoanWithholdingDetailDTO> selectLoanWithholdingDetail(McfeLoanWithholdingDetailDTO mcfeLoanWithholdingDetailDTO);
	
	/**根据loanId更新咨询费代扣详情表
	 * @author 娄凯琦
	 * @date 2018年5月17日  
	 * @param mcfeLoanWithholdingDetailDTO
	 */
	public void updateLoanWithholdingDetail(McfeLoanWithholdingDetailDTO mcfeLoanWithholdingDetailDTO);
	
	/**生成咨询费代扣详情
	 * @author 娄凯琦
	 * @date 2018年5月17日  
	 * @param mcfeLoanWithholdingDetailDTO
	 */
	public void insertLoanWithholdingDetail(List<McfeLoanWithholdingDetailDTO> mcfeLoanWithholdingDetailDTOList);
	
	/**根据id更新咨询费代扣详情表金额
	 * @author 娄凯琦
	 * @date 2018年5月19日  
	 * @param mcfeLoanWithholdingDetailDTO
	 */
	public void updateLoanWithholdingDetailById(McfeLoanWithholdingDetailDTO mcfeLoanWithholdingDetailDTO);
	
	
	/**根据id查询咨询费代扣详情表金额
	 * @author 娄凯琦
	 * @date 2018年5月19日  
	 * @param mcfeLoanWithholdingDetailDTO
	 * @return
	 */
	public McfeLoanWithholdingDetailDTO selectLoanWithholdingDetailById(McfeLoanWithholdingDetailDTO mcfeLoanWithholdingDetailDTO);
	
	
	/**插入单个咨询费代扣流水详情
	 * @author 娄凯琦
	 * @date 2018年5月21日  
	 * @param mcfeLoanWithholdingDetailDTO
	 */
	public void insertSingleLoanWithholdingDetail(McfeLoanWithholdingDetailDTO mcfeLoanWithholdingDetailDTO);
	
	
	
	/**
	 * 根据订单号查询咨询费代扣
	 * @param orderNo
	 * @return
	 */
	public McfeLoanWithholdingDetailDTO selectByOrderNo(@Param("orderNo") String orderNo);
}
